<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 	<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
	$(function(){
		$("#adminConfirm").keyup(function(){
			if($(this).val()==1){
				if(confirm("서비스신청을 승인하시겠습니까?")){
					location.href="admin.do?command=adminAllow&optionalNo=${requestScope.osvo.optionalNo}&responseAdmin="+$(this).val();
				}
			}
		});
	});
</script>
<table border="1" >
<tr>
<th>No</th><td>${requestScope.osvo.optionalNo}</td>
</tr>
<tr>
<th>아이디(남)</th><td>${requestScope.osvo.mId}</td>
</tr>
<tr>
<th>아이디(여)</th><td>${requestScope.osvo.wId}</td>
</tr>
<tr>
<th>관리자승인</th><td><input type="text" id="adminConfirm" value="${requestScope.osvo.responseAdmin}" size="6"></td>
</tr>
<tr>
<th>서비스신청(남)</th><td>${requestScope.osvo.requestM}</td>
</tr>
<tr>
<th>서비스신청(여)</th><td>${requestScope.osvo.requestW}</td>
</tr>
<tr>
<th>비밀번호</th><td>${requestScope.osvo.rePassword}</td>
</tr>
<tr>
<th>서비스기간</th><td>${requestScope.osvo.serviceCloseDate}</td>
</tr>
</table>

